﻿using System;
using System.IO;

namespace SharpML.Api.Extensions
{
    public static class Paths
    {
        public static string ResolveRelativePath( this string basePath, string relativePath )
        {
            return Path.GetFullPath( new Uri( Path.Combine( basePath, relativePath ) ).AbsolutePath );
        }
        public static string ResolvePath( this string path )
        {
            return Path.GetFullPath( new Uri( path ).AbsolutePath );
        }
    }
}
